import SwiftUI

struct RootView: View {
    @StateObject private var recorder = MotionRecorder()
    
    var body: some View {
        TabView {
            ScenarioListView()
                .environmentObject(recorder)
                .tabItem {
                    Label("采集", systemImage: "record.circle")
                }
            
            ContentView()
                .tabItem {
                    Label("实时数据", systemImage: "waveform.path.ecg")
                }
        }
        .tint(.blue)
    }
}

#Preview {
    RootView()
}
